package net.ojbk.timeSpace.test.web.handllers;

import javax.servlet.http.HttpSession;

import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

public interface IAxisController {

	/**
	 * 發佈一個葉片，成功重定向，到/timeBlade.html，並 timeId
	 * 
	 * @param axisId
	 * @param type
	 * @param title
	 * @param content
	 * @param img0
	 * @param timePW
	 * @param session
	 * @return
	 */
	public ModelAndView doPushBlade(int axisId, String title, String content, MultipartFile imgs,
			HttpSession session) throws Exception;

	/**
	 * 构建时光轴的Model，跳转到视图到/WEB_INF/jsp/home.jsp视图
	 * 
	 * @param axisId
	 * @param session
	 * @return
	 */
	public ModelAndView doShowHome(String axisId, HttpSession session);

	/**
	 * 修改評論密碼
	 * 
	 * @param newPw
	 * @param AxisId
	 * @param session
	 * @return
	 */
	public Object doModifyMsgPw(String newPw, String axisId, HttpSession session);
}
